﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">


<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>

<?php

include("inc/joomlaInt.php");
include("inc/inc_configuration.php");

if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{	
	$matchday = $_GET["matchday"];
	$liga = $_GET["liga"];

	//<script type="text/javascript" src="tablecloth/tablecloth.js"></script>

	$q="SELECT type FROM $tbl_leagues WHERE id=$liga";
	$qe=mysql_query($q);
	$qeo=mysql_fetch_object($qe);
		
	$type=$qeo->type;

	if ($type>1)
	{
		$gq= "SELECT id FROM $tbl_lg WHERE leagueId=$liga";
		$gqe=mysql_query($gq);

		while ($r=mysql_fetch_object($gqe))
		{
			$gruppe=$r->id;
			include("inc/inc_pokal_tabelle.php");
		}
	}
	else
	{
		include("inc/inc_tabelle.php");
	}

	echo "<br><br>
				<center><a href='lima.php' class='button zurueck'>Zurück</a></center>";
}
?>

</body>
</html>